package com.zhang.other;

import java.util.Arrays;

public class Demo {
    public static void main(String[] args) {
        byte[] bytes = new byte[]{1,-117,2};
        String s = new String(bytes);
        System.out.println(s);
        byte[] bytes1 = s.getBytes();
        System.out.println(Arrays.equals(bytes,bytes1));
    }
}
